<?php
include_once('connection/connection.php');
$id=$_POST['id'];
$district=$_POST['district'];
$block=$_POST['block'];
$year=$_POST['year'];
$Annual_Rainfall=$_POST['Annual_Rainfall'];
$Annual_Rainydays=$_POST['Annual_Rainydays'];
$Heighest_Rainfall=$_POST['Heighest_Rainfall'];
$On_Date=$_POST['On_Date'];

$query_rainfall_main="update tbl_dtls_rainfall_details set year='$year',Annual_Rainfall='$Annual_Rainfall',Annual_Rainydays='$Annual_Rainydays',Heighest_Rainfall='$Heighest_Rainfall',On_Date='$On_Date' where id='$id'";
$result_rainfall_main=mysql_query($query_rainfall_main);
if($result_rainfall_main)
{
header('Location:rainfall_list.php?DT='.$district.'&BC='.$block.'');
}
?>